<div class="actions">
    <div ng-click="showEventList()" class="action on-right">Back</div>
</div>

<form name="categoryEditForm" class="form-horizontal" role="form">
    <div class="form-group input">
        <label class="control-label col-sm-2" for="title">Title<span class="required">*</span></label>
        <div class="col-sm-5 controls">
            <input id="title" name="title" class="form-control"  ng-model="event.title" required>
        </div>
    </div>
    <div class="form-group input">
        <label class="control-label col-sm-2" for="date">Date<span class="required">*</span></label>
        <div class="col-sm-5 controls">
            <input id="date" name="date" type="date" class="form-control"  ng-model="event.date" required>
        </div>
    </div>
    <div class="form-group textarea">
        <label class="control-label col-sm-2" for="descr">Description</label>
        <div class="col-sm-5 controls">
            <textarea id="descr" name="descr" class="form-control" rows="3"  ng-model="event.descr"></textarea>
        </div>
    </div>
    <div class="form-group upload">
        <label class="control-label col-sm-2" >Image</label>
        <div class="col-sm-8 controls">
            <div ng-include src="'/cms/common/uploader.html'"></div>
        </div>
    </div>

    <div class="form-group button">
        <label class="control-label col-sm-2"></label>
        <div class="controls col-sm-5">
            <button ng-disabled="eventEditForm.$invalid || noImage()" ng-click="saveEvent()" class="btn btn-primary">Submit</button>&nbsp;&nbsp;
            <button ng-click="reset()" type="reset" class="btn">Reset</button>
        </div>
    </div>
</form>